package com.meirimoney.utilities;

import java.util.UUID;

import android.app.Activity;
import android.content.Context;
import android.telephony.TelephonyManager;

/***
 * 设备信息管理
 * 
 * @author gewei
 * 
 */
public class Device
{

	/***
	 * 获取设备Id
	 * 
	 * @param context
	 *            当前的上下文信息
	 * @return
	 */
	public static String getDeviceId(Context context)
	{
		final TelephonyManager telephonyManager = (TelephonyManager) ((Activity) context)
				.getBaseContext().getSystemService(Context.TELEPHONY_SERVICE);
		String deviceId = telephonyManager.getDeviceId();
		if (deviceId != null && deviceId != "")
		{
			return deviceId;
		}
		return "";
	}
}
